angular.module('purchasing.router', [])
.config(function($stateProvider) {
  $stateProvider    
  //采购
  .state('app.purchase', {
    url: 'purchase',
    views: {
      'menuContent': {
        templateUrl: 'templates/ceo/tab-purchase.html',
        controller: 'PurchaseCtrl'
      }
    }
  })
    //创建采购单
    .state('app.create-order', {
      url: 'purchase/create-order',
      views: {
        'menuContent': {
          templateUrl: 'templates/purchasing/create-order.html',
          controller: 'CreatePurchasingOrderCtrl'
        }
      }
    })
  
    //历史采购单
    .state('app.purchase-order-list', {
      url: 'purchase/order-list',
      views: {
        'menuContent': {
          templateUrl: 'templates/purchasing/order-list.html',
          controller: 'PurchaseOrderListCtrl'
        }
      }
    })
    //历史采购单详情
    .state('app.purchase-order-detail', {
      url: 'purchase/order-:_id',
      views: {
        'menuContent': {
          templateUrl: 'templates/purchasing/order-detail.html',
          controller: 'OrderDetailCtrl'
        }
      }
    });
});